home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / SINH.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  360 b   |  22 lines

  1.  /* sinh.c from page 243*/
  2.  #include <stdio.h>
  3.  #include <stdlib.h>
  4.  #include <math.h>
  5.  main(int argc, char **argv)
  6.  {
  7.     double  result;
  8.     if(argc < 2)
  9.     {
  10.         printf("usage: %s <value>\n", argv[0]);
  11.  
  12.     }
  13.     else
  14.     {
  15.         result = sinh(atof(argv[1]));
  16.         if ( errno != ERANGE)
  17.         {
  18.         printf("Hperbolic sine of %s  = %f\n",
  19.         argv[1], result);
  20.         }
  21.     }
  22.  }